//
//  BaseViewController.m
//  Food
//
//  Created by dlios on 15/7/13.
//  Copyright (c) 2015年 李志远. All rights reserved.
//

#import "BaseViewController.h"
#import "BaseHeader.h"


@interface BaseViewController ()

@property (nonatomic, retain) UICollectionViewFlowLayout *flowLayout;
@end

@implementation BaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    /**
     *  背景颜色
     */
    self.view.backgroundColor = [UIColor whiteColor];
    /**
     *  导航栏颜色
     *
     *  @param 220 红
     *  @param 220 绿
     *  @param 220 蓝
     *
     *  @return
     */
    self.navigationController.navigationBar.barTintColor = RGBCOLOR(255, 255, 255);
    /**
     *  屏幕长宽
     */
    NSLog(@"width: %.f, height: %.f", SCREEN_WIDTH,SCREEN_HEIGHT);
    /**
     *
     *
     *  @return 自定义返回
     */
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[[UIImage imageNamed:@"iconfont-fanhui-3"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] style:UIBarButtonItemStyleDone target:self action:@selector(back)];
    
    /**
     *
     *
     *  @return 关掉透明度
     */
    self.navigationController.navigationBar.translucent = NO;
    [self.navigationController.navigationBar setTitleTextAttributes:[NSDictionary dictionaryWithObject:REDCOLOR(1) forKey:UITextAttributeTextColor]];
    
    
}

- (void)back
{
    [self.navigationController popViewControllerAnimated:YES];
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
